export interface ResponseData {
  code: number
  message: string
  ok: boolean
}
// 菜单数据与按钮数据的ts类型
export interface Menus {
  id?: number
  createTime?: string
  updateTime?: string
  parent_id?: number
  name: string
  children?: MenusList
}
export type MenusList = Menus[]
// 菜单接口返回的数据类型
export interface MenusResponseData extends ResponseData {
  data: MenusList
}
// 添加与修改菜单携带的参数ts类型
export interface MenuParams {
  id?: number
  name: string
  parent_id?: number
}
